package homework01;

import java.time.LocalDateTime;

public class User {
    private String username;
    private String password;
    private LocalDateTime registrationtime;
    private LocalDateTime loginTime;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDateTime getRegistrationtime() {
        return registrationtime;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public void setLogintime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
        this.registrationtime = LocalDateTime.now();
    }
}
